<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <title>商品页面</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
</head>

<body>
<form id="payForm" th:action="@{/goAlipay}" method="post">
    <input type="hidden" name="orderId" th:value="${order.id }"/>
    <table>
        <tr>
            <td>
                订单编号: <p th:text="${order.id }"/>
            </td>
        </tr>
        <tr>
            <td>
                产品名称: <p th:text="${product.name }"/>
            </td>
        </tr>
        <tr>
            <td>
                订单价格: <p th:text="${order.orderAmount }"/>
            </td>
        </tr>
        <tr>
            <td>
                购买个数：<p th:text="${order.buyCounts }"/>
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="前往支付宝进行支付">
            </td>
        </tr>
    </table>
</form>
</body>
<script type="text/javascript">
</script>

</html>